import request from '@/utils/request'

// 查询标签商品中间列表
export function listDshop(query) {
  return request({
    url: '/shop/dshop/list',
    method: 'get',
    params: query
  })
}

// 查询标签商品中间详细
export function getDshop(dshopId) {
  return request({
    url: '/shop/dshop/' + dshopId,
    method: 'get'
  })
}

// 新增标签商品中间
export function addDshop(data) {
  return request({
    url: '/shop/dshop',
    method: 'post',
    data: data
  })
}

// 修改标签商品中间
export function updateDshop(data) {
  return request({
    url: '/shop/dshop',
    method: 'put',
    data: data
  })
}

// 删除标签商品中间
export function delDshop(dshopId) {
  return request({
    url: '/shop/dshop/' + dshopId,
    method: 'delete'
  })
}
